home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / POV-Ray 3.0.2 / src / MacSource / SaveCmpPict.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-14  |  3.3 KB  |  93 lines  |  [TEXT/CWIE]

  1. /*
  2. ==============================================================================
  3. Project:    POV-Ray
  4.  
  5. Version:    3
  6.  
  7. File Name:    SaveCmpPict.h
  8.  
  9. Description:
  10.     Routines for saving a PICT file in QuickTime compressed format.
  11.     
  12.     This source code was written with a lot of help from some examples
  13.     off of Apple's QuickTime 1.0 Developer CD.
  14.  
  15.     Note that this source requires the as-yet non-standard header files
  16.     and glue files for QuickTime and the Standard Compression dialog.
  17.     These files will need to accompany this source until Apple rolls them
  18.     into MPW/Think.  The additional files needed are listed below:
  19.     Components.h            - MPW/Think - QuickTime Component header
  20.     ImageCompression.h        - MPW/Think - QuickTime Image Compression header
  21.     StdCompression.h        - MPW/Think - Std Compression dialog header
  22.     StdCompression.rsrc        - MPW/Think - Std Compression dialog resource
  23.     StdCompressionGlue.o    - MPW - Std Compression dialog glue routines
  24.     StdCompressionGlue.π    - Think - Std Compression dialog glue routines
  25.  
  26. Related Files:
  27.     SaveCmpPict.h: header file for Save Compressed Pict routines
  28.     SaveCmpPict.c: main file for Save Compressed Pict routines
  29. ------------------------------------------------------------------------------
  30. Author:
  31.     Eduard [esp] Schwan
  32. ------------------------------------------------------------------------------
  33.     from Persistence of Vision(tm) Ray Tracer
  34.     Copyright 1996 Persistence of Vision Team
  35. ------------------------------------------------------------------------------
  36.     NOTICE: This source code file is provided so that users may experiment
  37.     with enhancements to POV-Ray and to port the software to platforms other 
  38.     than those supported by the POV-Ray Team.  There are strict rules under
  39.     which you are permitted to use this file.  The rules are in the file
  40.     named POVLEGAL.DOC which should be distributed with this file. If 
  41.     POVLEGAL.DOC is not available or for more info please contact the POV-Ray
  42.     Team Coordinator by leaving a message in CompuServe's Graphics Developer's
  43.     Forum.  The latest version of POV-Ray may be found there as well.
  44.  
  45.     This program is based on the popular DKB raytracer version 2.12.
  46.     DKBTrace was originally written by David K. Buck.
  47.     DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  48. ------------------------------------------------------------------------------
  49. Change History:
  50.     920414    [esp]    Created.
  51.     920419    [esp]    Embellished file header comments, renamed routines for consistency
  52.     921221    [esp]    Updated includes for QuickTime 1.5 headers
  53.     931001    [esp]    version 2.0 finished (Released on 10/4/93)
  54.     940430    [esp]    Preliminary 3.0a1 work
  55. ==============================================================================
  56. */
  57.  
  58. #if !defined(SAVECMPPICT_H)
  59. #define SAVECMPPICT_H
  60.  
  61.  
  62. /*==== POV headers ====*/
  63. #include "config.h"
  64.  
  65.  
  66. /*==== Mac Toolbox Headers ====*/
  67. #include <types.h>
  68. #include <files.h>
  69. #include <memory.h>
  70. #include <qdoffscreen.h>
  71.  
  72.  
  73. /*==== QuickTime compression headers ====*/
  74. #include    <ImageCompression.h>
  75. #include    <QuickTimeComponents.h>
  76.  
  77.  
  78. typedef enum {eAFI_ShrinkWholeImage, eAFI_UseCenter}  eAFI_ImagePrefs_t;
  79.  
  80.  
  81.  
  82. OSErr AppendFilePreview2PictF(FSSpec *fsFile);
  83.  
  84. OSErr AppendFinderIcons2PictF(FSSpec *fsFile,
  85.                         Rect *theOriginalPicFrame,
  86.                         eAFI_ImagePrefs_t theImagePrefs);
  87.  
  88. OSErr CompressPictF(ComponentInstance ci,
  89.                         FSSpec *theImageFile);
  90.  
  91.  
  92. #endif // SAVECMPPICT_H
  93.